package com.example.demo.service;

import com.example.demo.dto.MessageMarkEvent;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationEventPublisher;
import org.springframework.stereotype.Service;

/**
 * @Description: 事件监听
 * @Author: 张广焱
 * @Date: 2024-01-20 16:58
 */
@Service
public class Sjjt {

    @Autowired
    private ApplicationEventPublisher applicationEventPublisher;

    public  void aa (){
        applicationEventPublisher.publishEvent(new MessageMarkEvent(this,null));
    }


}
